function notifyOthers(externalUrls, redirectUrl) {
    if (externalUrls && externalUrls.length > 0) {
        var completeTotal = 0;
        for (var i = 0; i < externalUrls.length; i++) {
            var url = externalUrls[i].url;
            url += url.indexOf('?') > 0 ? '&' : '?';
            url += "uuid=" + externalUrls[i].uuid;
            $.ajax({
                type: "get",
                // async:false,
                url: url,
                dataType: "jsonp",
                timeout: 1000,
                jsonp: "callbackparam",
                jsonpCallback: "success_jsonpCallback",
                complete: function(json) {
                    completeTotal++;
                    if (completeTotal == externalUrls.length) {
                        if (redirectUrl) {
                            window.location.href = redirectUrl;
                        }
                    }
                },
                success: function(data) {
                },
                error: function(data) {
                }
            });

        }
    }
}


function sendOperationIframe(flag, userName) {
    //flag 0: 关层，case 1://登录成功 case 2://校验用户    case 3://弹出登录框       case 4://弹出注册
    //case 10://嵌入登录层 回调     case 11://嵌入登录层 登录     case 12://嵌入登录层 注册

//	 var popIframeSrc = document.location.protocol +"//" + $("#callbackHost").val() + '/ec/homeus/html/glogin_callback.html';
//	 var popIframeSrc = "http://" + $("#callbackHost").val() + '/ec/homeus/glogin_callback.html';
    var popIframeSrc = $("#callbackHost").val();
    var popOperationIframeSrc = popIframeSrc + '?option_callback=' + flag;
    if (userName) {
        popOperationIframeSrc += '&userName=' + userName;
    }
    window.location.href = popOperationIframeSrc;
//	 document.write('<iframe style="display:none;" src="'+ popOperationIframeSrc+ '"></iframe>')
//	 $("#popOperationIframe").attr("src",popOperationIframeSrc);
}
